//
//  HomeStoreDataView.m
//  SameWorld(merchant)
//
//  Created by 李小朋 on 2017/3/29.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "HomeStoreDataView.h"
#import "UserInfo.h"
@interface HomeStoreDataView ()

@property (nonatomic ,strong) UserInfo *userInfo;

// ** 今日交易额*/
@property (weak, nonatomic) IBOutlet UILabel *turnoverLabel;
// ** 今日成交订单*/
@property (weak, nonatomic) IBOutlet UILabel *nowOrderLabel;

@end

@implementation HomeStoreDataView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray *viewArray = [[NSBundle mainBundle] loadNibNamed:@"HomeStoreDataView" owner:self options:nil];
        self = viewArray[0];
        self.frame =frame;
        [self setupUI];
    }
    return self;
}

- (void)setupUI {

    _userInfo = [UserInfo sharedUserInfo];
    
    // 今日交易额
    self.turnoverLabel.text = [NSString stringWithFormat:@"%@",_userInfo.turnover_now];
    
    // 今日成交订单
    self.nowOrderLabel.text = [NSString stringWithFormat:@"%@",_userInfo.now_order];

}

@end
